package com.xueyi.aixihu.reqeust;

import com.xueyi.aixihu.reqeust.base.PageLimitReq;
import lombok.Data;
import org.springframework.util.StringUtils;

import javax.validation.constraints.NotNull;

/**
 * @author hxs
 * @createDate 2023/6/29 11:14
 * @description 查询待审核报表接口
 */
@Data
public class FindWaitAuditReportFormListReq extends PageLimitReq {

    private String keyword;
    private Integer currentStatus;

    @NotNull(message = "参数异常")
    private Integer reportType;

    private String month;

    @NotNull(message = "参数异常")
    private Integer addressType;

    private String currentStatusStr;

    private Integer oneIndex;
    private Integer twoIndex;

    public void format() {
        keyword = StringUtils.hasLength(keyword) ? keyword.trim() : null;
        month = StringUtils.hasLength(month) ? month.trim() : null;
        countStartIndex();
    }
}
